fix a sensor rotation issue