fix malformed request parse