fixed a bug with boxplot