render bug fix