Typo + replaced undefined variables with link_id