fixed possible memory holes.