Fixing condition where object_params was nil