fixed compilation warnings about uninitialized values