fixed compare of schema