fix problem with histogram drawing, which only produces axes