fix inbox query.