Fixed crash at startup on device