Fix dependency error found by minimal dependencies test.