fix "file" key bug