Please provide a minimal self-contained test case reproducing this. It is likely that some of your code interfers with it.