fixes error with bad server request