fixed some bugs in CycleRoll.roll