workaround core.exception.InvalidMemoryOperation in vibe.d (wtf ?)