fix bug with action type/name confusion