fixed auth check error (again)