// Fix wrong cast on upgrade tabs