Fix to make sensor selecting work.