Fix comparison sign bug