fix upgrade script #2435