There is just a silly mistake. As [TRC told][1], $\ce{Pd/C}$ is not a Lindlar catalyst and it behaves as a normal $\ce{Pd/H2}$. Refer to [the link][2] for more information. [1]: https://chemistry.stackexchange.com/questions/155693/can-lindlar-catalyst-reduce-aldehyde-nitrile-and-carbonitrile#comment319615_155693 [2]: https://en.m.wikipedia.org/wiki/Palladium_on_carbon