Fix in overridden mica query script