Update main.py

fix in loop