Fixed a bug, causing infinite loop (hang)
initial support for list of sets.