Fixed a potential bug when reading osc values