Use correct cursor API