fix copy on necromancy warning