fixed errors in initialize.cpp