fixed issue with FileReader-related crashes