fixed npe in merger