fixes insert mode toggling in documentation