fix up schema check