fixed bug in sign operator