I don't want the code of your program. I want you to write (from scratch) a short program (30 lines of code max) that will contain only the code necessary to reproduce the problem. Writing such a test case is very often enough to pinpoint and fix the problem on your own.