Fix for faulty save_object_error call