parsing list was not cleared in all cases