fix mode-map