fix so that cursor gets opt={} as opposed to *undefined*