commands: Fix off-by-one