Your code looks quite normal. But all 6.31.4 engines are the same, so it is not likely that you have an individual version with this problem that mine or other people's versions haven't.

Can you post a screenshot of the problem?