Fix bug at creating lists