Moved a brace, changed "lng" to "longest".