Fixed sanity check