Fix auto disable when exiting insert mode

Closes #5.