fixed bug on touch devices.