Location manager: bugfixes