fix bug for tablet