fix panel restoration