Even slighter bug fix with madlib output