fix dangerous $tablet variable override