fixed bug when app newly re-installed