Fixing false negative error condition