fix setting negative numbers in the old console (using atoi)