Fixed debug renderer crashing issue.