Fix segfault bug with wlist