fixed some list processing errors