Little fixes in main.py