fixed service.cpp initialization