Fixed bugs with actions.