Fixed free empty list issue.