fix error for auth