Fix the bug for adding hidden file fields.