fixed bug with double populating the list