You are totally right, whenever code works right away I something has to be wrong. I seemed to be testing with the code I used before. I added another pull request to fix it.
https://github.com/ivaynberg/select2/pull/703