fixed a bug regarding uninitialized values warning messages