Fix auto disable when exiting insert mode.