Fixing empty series bug while keeping colors consistent after filtering