fixes for gapBuffer iterator functions