array buffer file reader fix