fixed bug and tested against demo app. updated dependencies

fix breaking change