fixed request error on malformed request