touch detection fix