fixing touch input problem