Fix bug in list