fix a bug about histogram visualization with Java 8