Fixed a bug at addAction.js