bug fix on fopen
Merge branch 'master' of https://github.com/withcenter/x