fix for not correctly setting state for touch