Fixed wrong ORM mappings.