bug fix: a schema with a single level is now handled properly.