fixing object loops