Fixed error on no cycles situation.