fix cursor position after macro