Fixed SINGLE THRESHOLD bug