fixed rendering to prevent slowness