Fixed repeated points bug