fixed stuff in action.py