That should not be happening. Have you seen if it causes an exception of type thread unsafe operation.

Also do use the code block for putting code in post.