Fixed spelling error in code comment
Fixed two issues in the opts_upgrade function, the first is we should make sure amax_title_length has a good value (can't be 0)