fixed OSX bug opening windows from init file