Fix to auth