bug fix for ios 7