Fixed the return value type for renderContentWithContent