fixed crash when file don't exist or user repeat login and so on