Fix issue 829 -- error message is displaying wrong incorrect result.