fixing ios7 issue