Fix file value missing on edit