Bugfixes for mrlogreg