Fix argument name mismatch #128
Check quantization table index

Fixes #130