fixed if statement logic bug

eom

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