bug fix:修复了nextPoint的bug