fixed a ref counting bug in func_concat