fix #478 ,Undefined field in structure compile error can be found now.

fix #478

I thought I had to write 100 lines of code to fix it, but I find the job has been done.