fixed possible mistakes in addToRender methods