fix tablet bugs appearing on configuration change