Fixed #9 for ios