Fixed the minimization problem that the problems had