bound fix for ios 7