fix sitebase rendering and variable names

Quick fix for variable names and the render error.