Fixed uninitialized variable in main.cpp