Fix smartrep mode line string.