Fix persisting selected module.