fixed problems of touch events.