fixed bug in FunctionRenderer2