smacker: fix a few off by 1 errors