Fixing render after resize.