fixed if logic issue

eom

Signed-off-by: Robert Tipton <tret@tretflix.com>