bugfix saving marks