fix cursor move