Fixed bugs in actions