Bugfix for empty list.