fixing a rendering issue