Fix obj offset error.To be tested.

Fix obj offset error.To be tested.