Fix variable initialization in the renderer