Fixed issue when switching to manual TOF mode.