Now the schemas has the correct refs