fix some error,
mutual_information has some problems