fix(index): fix undefined error

"Uncaught TypeError: Cannot read property 'frame' of undefined", on mac
Release 1.0.2