CopyLayer fixed for Linux