Fix some troubles with touch events