Fixes for "Uncaught TypeError..." message 

I was getting over and over again this error message `"Uncaught TypeError: Object [object Object] has no method 'create'"` with the latest eak. I'm not sure if it's only my problem, but this small change fixed it. If you want to consider it, I'd like to get this merged :+1: