fixed error with lists