Fixes

Wroing threshold and region vector sized are fixed