fix cursor importing