fixing bug when installing (bad upgrade check)