Fixed sanity checks.