Merge with 1.7.7 branch.