fix for User.company_id was deleted when searching user with user_name