rendering bug fix