Fixing bug where FileReader called one extra time