Bug fix in thresholding of zero point