minor fix in set(cycle)