Fixed empty list problem.