fix bug in action selection with action ordering