Fixed copy script