fixed compile error in location class