Corrected histogram errors in MS