fix bug that ticks error