fixing object lag bug