Fix compass not working in some cases.
Signed-off-by: Dmitriy Pavlenko <dmitriy.pavlenko@sysgears.com>