fix multi-cycle problem