Fixed a bug with EnclosedcyclesSet not detecting enclosing cycles properly