fixed indicator bug when using cycle