fixed handling of location manager usage