fix errors in entity mapping schemas for relations