Fixed bug with tablet