fixed some schema hashing problems
fixed a problem comparing schemas