fix of mapBuffer implementation and worker initialization
small fix of initialization