Adds bug fixes to the snap to grid