Fixed crash bug on phone startup