popen fix