smc: fix the bounds check