fix weird histogram plotting