fix bug by ensuring we're comparing Integers