If you want help, you'll have to boil the problem down to an SSCCE that demonstrates the problem. Trace through your program with a debugger or even some print statements to figure out where the...