fixed bug for local array and struct.