Fix for crashing during player rendering.