[bugfix] sim: signed comparison