correctly delete last digitized point, fixes #8462