fixed touch detection.