Fixed bug in ordered listing