Fix multipart detection