fixed logic in findRenderFunction