fixed filtering of lists