Fixed empty list error.