fix touchscreen legacy