Fix bug when try to test on ios 7