applied https://github.com/brianreavis/selectize.js/issues/259