Fix apple functionality