fix for User.company_id is deleted