fixing GateCopy ids