fixing crash bug in android location init