fixed a bug in the way actions are used