fixed bug for fund ptr inside struct.