I did some additional tests and I came to the conclusion that the problem only occurs when I have the 'Truncate Column Headers To Maximum Data Size' option set in the General tab of the preferences.
When this option is not set, then I have no problems.