Fixed logic error in the check that was causing a false positive.