Make sure we're operating on the buffer which has the marker

Fixes issue #1