Fixed issue with inputting negative numbers