fix bug in mallows model