fixed bug with lists