fix mistake with BEARING_METHOD 3. Now it works ok.
fix restoring bearing value from previous session