fixed multipart bug