Fix order for the link parsing function