Another bug fix in the number of render calls