fix categories filtering