fix sanity_0 to count correctly