fixed bug for pointer to array.