Fixed type in upgrade script.