Do not set threshold if not required

- avoid infinity problem