mongo prepareSelectClause fix