Cleaning patElectron