Fix MasOS and iOS