Fix potential issue while copying assets.