Fix failure condition bug
Merge pull request #3 from glenjarvis/bug/fix_failure_case

Fix failure condition bug