fix assertion in merge-sexp