Fix a bug where not every map was being filtered out.