fix some bugs in box plots