fix negative cmp