Repair puppet-mode.