Fixes #7041: fixed incorrect belongs_to mappings