Bug fixed for touchscreen