fixed a typo which caused to register all upgrade requests as invalid #9