fixed threshold not resetting