Bugs fixed in quantization and gesture control