Linking not working as expected.