Solved the bug where the 3rd link instead of the last link was being grabbed