location bug fixed