Fixes null reference with done not being set when file changes.