refined location bug fix