NoSuchElementException: head/tail of empty list bug has been resolved.