Fixed a bug with appending a item to a list