Fix a few issues with the upgrader + a typo

Signed-off-by: Yoshi2889 <rick.2889@gmail.com>