fix iterm open check