Added missing sanity check.