Fixed issue where new items were always added at the end of the list