Fix let-syntax bug: java.util.NoSuchElementException: head of empty list