Fixed min to set to new val on first iteration