fix an bug which lead X to take cpu too high