Fix incorrectly referenced externals in cursor implementation.