fixed a tablet crash