Multiple fixes for sublime-text-editor