Fix bug with marks