Fix bug 1017719: run all stages of gear upgrade extension