Something is probably wrong with the code. Probably the only way to fix it is to go through the code and look for where the problem is.