fixed some login in main.cpp