Fixed bug and updated dependencies