fixed an upgrade bug

Change-Id: Iff000c23425a252e7393dd67edaff534ffb203c3
Merge "fixed an upgrade bug"