fixed cmd6 if/then