workaround for StreamCorruption that may be caused with directBuffer