Fix for arrfunc copy issue