Fixed bug on linked.c