Fixing some issues of rendering with setTimeout. Its just a temp fix.