Fixed bug for noweight events and for reading imh_lambda