Touchscreen bug fix