Fixed minor bug with dependency conditions