fixed uninitilized field bug