Fixed errors in upgrade file