small modifition to bindingbasedrenderer