fixing mongo filter  issue