Fix for issue #162 - onCreated callback not called

Guys, does this fix solve the issues with the onCreated callback not being called? The example works for me with this code.