Bad alloc issue is fixed by last commits