Solved issue with id's after upgrade or reinstall