Fixed double comparison bug: x = -x.