Fixed bug with privateCheck in server.c