fixed issue with setting a list to an empty list