Fixed minor problem with FSopen returning wrong pointer when file is closed.