Fix propagation of the magic query status