fix sanity-check