bug fix for touch auto close