threshold bug correction