fix missing sanity check