fixed 0 = 1 error