isInPolygon bug fixed

Still have assumption, otherwise it will get wrong