[fix] Queue querying