fix threshold ms