Hopefully made rendering a bit more stable