Fix bug in prev commit for sim_compare