fix conditional command