little fix to protect hisotgram
Merge pull request #155 from mikedewar/master

little fix to protect hisotgram