Update main.cpp

Missed { } in all the patching.