Cursor stays in position post formatting