fixed problem with list not being filled