Fixed attribute error for related published content