fixed the bug of importing duplicate points