fix dirty mark