fixed bug of findPoint