fix minimize build