Fixed some residual bugs from refactor (svg and cordova events)