I did a few tries with your code and it always placed everything correctly. Can you give a minimal example that produces incorrect output on your mac? Luis Sequeira