fix tablet NPE