fix upgrade path