Refs #792 - Fixes logic error