fixed crash on tablets in landscape view