Reinstall middleware