fix for tablet orientation bug