fixed bugs in the removeCategorizedFilter func