Fix isTablet() method