location mode bug fixed