Add auto-correct to DotPosition cop

Fix #1279