Fixed a bug where an unpopulated list was referenced