bug fix gpopen