Fixed bug

No longer crashes server when request is in wrong format.