Fix: when updating query text the hash should change.