fixed issue with setting a list to an empty list

addresses issue #139