fixing to read empty list