reverted code making a copy of a member that may be freed while using it.