Fix file name not changing when changing file