Fix talloc error when using certain virtual attributes