multipart: fix limits check