Added missing sanity check