Fix end of touch was not properly detected