fixes issue #7965

But I have to check with  1 and -1 not positive and negative how can i use is_positive or is_negative