Render call bug fix