fix @new_record not instantiated bug