Fixed bug in filter, allowing multiple datasets to be loaded