Fixing render bug.