Fix bug on touch event cap