MBH: correcting logic bug