Fixed the muxing logic in list.c