Fix problem with Observable.create()

* Fix problem with Obserable.create()
* Avoid the use of deprecated methods