Increment buffer index