fixed C++ error in initializer