Fixed error with set min>0.