Fixed bug with multitouch compatibility