fixing the filter to handle lazyload