Fixed returning dangling ref in get