fixing rout for ensureRefset