Fix scope of dependencies