fix popen