Fixed issues for entering/calculating negative numbers.