# Bug SPPM-47 - Removing a project custom field stored as a filter in a project list leads to wrong counter value

Project: Stream Project Portfolio Management
Status: closed
URL: https://community.openproject.org/work_packages/SPPM-47

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 14.1.0 |
| Observed in versions |  |
| Bug found in version (deprecated) |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Create a project custom field
2.  Go to the project lists
3.  Select the project custom field to be a filter
4.  Save the list as some name
5.  Delete the project custom field in the administration
6.  Reload the list

### What is the buggy behavior?

*   Project list is still working ✅&nbsp;
*   The filter button shows the wrong number 

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/94957/content">

### What is the expected behavior?

*   Correct number of active filters displayed in the button
