location parsing bug fixed