Resolving dependencies bug