Fix logic bug that could prevent upgrading powers