Merged from upstream v1.2.16