Fix readCursorByName. It didn't work.