minor mode bug