Inverted var and multiapp order, should be more brilliant than this, but it works