Fix touch detection