Fix bug in lists