fixed major onlocationchanged bug

fixed major onlocationchanged bug