fix query fliter bug