Fix action -> type