Fix copy pre without code bug.