Fix bug when initializing static members.