fixing test and wndless loop in fillList