fix error with reference variable in action.py update method