Fixed bug where having no dependencies would cause crash.