tweak rendering bug fixes