fixed threshold error