fix bug tot_user_companies query