fixed bug for static struct and variable.