Fix copy-paste type in patch