update location bug fix