various fixes for android devices below 4.2