fixed upgrading