fixed some errors on non authentication