Fixed a bug in actions