fix popen command