* Fixed error on upgrade handling.