diff --git a/libraries/src/Document/Renderer/Html/ModuleRenderer.php b/libraries/src/Document/Renderer/Html/ModuleRenderer.php
index 596c511d2944f..b330e79b97256 100644
--- a/libraries/src/Document/Renderer/Html/ModuleRenderer.php
+++ b/libraries/src/Document/Renderer/Html/ModuleRenderer.php
@@ -54,7 +54,7 @@ public function render($module, $attribs = array(), $content = null)
* we want to render it
*/
$tmp = $module;
- $module = new stdClass;
+ $module = new \stdClass;
$module->params = null;
$module->module = $tmp;
$module->id = 0;
@@ -86,7 +86,7 @@ public function render($module, $attribs = array(), $content = null)
if ($params->get('cache', 0) == 1 && \JFactory::getConfig()->get('caching') >= 1 && $cachemode != 'id' && $cachemode != 'safeuri')
{
// Default to itemid creating method and workarounds on
- $cacheparams = new stdClass;
+ $cacheparams = new \stdClass;
$cacheparams->cachemode = $cachemode;
$cacheparams->class = 'JModuleHelper';
$cacheparams->method = 'renderModule';