fixed npe in value model