sign compare issue fix