Fix ios support