ObjectCreator now segmantation fault proof