fix ghost histogram