When the query is saved, this won't get updated, right? That's a bug... because after saving the query the "clean" state should be the query text after saving.