fix maximize-restore