some fixes to sensors