bugfix for tablets and smartphones