fixes error in multipart parser