Fix edge case defect causing rendering to fail