Fix file refresh after auth