bug fix on touch behaviour