fix cursor usage for load() method