Fix crash when run LEIntaller at the first time.