update location v2
fix bug