fixing initialization of static fields to default values code