bug fixed for histogram display