Fixed issue #23 Wrong error verification