fixed bug on restart app process