Fix runtime bug and update jar distribution.