Fixed a copy fail

Thanks Superloup!