bug fix on non php integrated curl function