fixed libdai caller