fix (- 12) != -12 problem