Fixed association and attributes merge issue.