Bug fix in initialize