Empty lists cause bugs