fixed bug of snap point