fix minor bug introduced when setting 0/1 to 1/2