fix open from std string error