It's quite difficult to help without seeing some related code.