fixed FileReader API call