By default, optdiag input mode checks that the numbering of steps in a histogram increases by 1. To skip this check after editing histogram steps, use the command line flag -T4:
optdiag statistics pubtune..titles -Usa -Ppassword
-T4 -i titles.opt