Fix dependencies bug