fixed bugs in actions