Fix invalid action setting