fixed error in the server