Fixes an errors where the smaller number is -2**31.