fix issue with filter and updated API