Fix bug with readmarker