mark/unmark periods fix