fixed some sensor errors