fix threshold lock condition