fixed cyclus greedy bugs