Fix incorrect generation of dependencies.