Fixed a crash while copying comments to properties