small Bugfix within the Render function