handle invalid action dict