Fixed bug in server accepting commands