Correct ident check in upgrade