Fixed bug with gallery in android 4.4.