corrected minimalization error