fixing render issues