little fix to protect hisotgram