fixed upgrade bug
fixed upgrade issue for master