If you are dealing with statics, you probably have some sort of data modification going on which is leading to unexpected results. It's hard to say exactly what the problem is with the example you...