fixing bug in action command