Fix minor syntax error in if/else/endif conditional