Fixed the automatic snap feature in the editor