Fix invalid action being displayed for valid parameters