fix nullref while touch input