fix serialPrint() function in SGManager.cpp