Fixed bug with server reset.