Fixed issue with entire list HTML being output for each list item