Fix typo that could allow bad clients to crash the server