fixed errors with server