Small fixes

1. offset was corrected for variable group 9
2. hardened against Java signed bytes