Check circular dependencies