bug fixes for touch devices