fix uninitialized constant HasFields