fixed problems with filter