osx: fix init issue