Minor fix for upgrader

Signed-off-by: ziycon <ziycon.eire@gmail.com>