Fix histogram dialog box