fixed bug

in findRenderFunction