Fixed a bug where the wrong action name was being added