fixed an issue on server auth implementation