Fix UV / GMP UI mismatch issue with primorial optization