fix hanging while auto correct

fixes #908