Fix bug in marker