Well perhaps if you showed us your code, we could find the problem.