fixing bug related to the usage of popen