Fix the stuck bug of pupil tracking algorithm.