fixing filter validation