Fixed an error in list formatting