fix startup crash on OSX client