Fixed apple bug