Some rendering bug workaround