Fix memory leak issue. Fix crash on first launch. Fix location manager delegate.