fix callbackid being released and set default root for the OS X to be /