fix content element generation