Fix bug when passing open to cli