Fix broken open from command line