Fix object name in render function