bug when using OSX and --im-display flag