Bug hung auto correct

fixes #871