fix bug with touchscreen target check