fix touch checking