fix created_by error with update_attributes