fixed error message in calculator.