11.02.2014, 14:13
Often with bugs like this just posting the exact lines that do want you want doesn't help - the bug is something elsewhere preventing your code being called correctly at all. We need WAY more code to debug the problem. As you rightly point out, that code looks fine so the bug probably isn't there. In general, if you don't know what is causing a bug, don't assume that you know where the code causing the bug is.