Fix sanity check