fix for transient-mark-mode