Fixed bug in redefine-action