relation class, fix error controller relation