Fixed realtime querying after subquery changes