fixed response when an invalid expression is entered