Fixed a bug in the action dictionary