FileIO errors fixed