fix SE bug that throws js exception
Merge pull request #45 from aleskiii/master

fix SE bug that throws an exception