Update main.cpp

fixed a seriously bad issue.