fix issue with minimization