fix mixed sign compare