Fixed sponOnce issues for macos