Dialog: Off-by-1 fix.