fix cursor localize