Fixed a bug that caused ticks to not appear if they fall exactly on the position of a frame point