Guide for histogram setting
Avoid NPE