Please show us the exact code. You seem to be creating objects in wrong places, that's all.