fix numpy sanity check