fixed a bug that led to action execution after the action was removed.