Update actions.py

bug cleaned