fix bug where I declare a File resource more than once in a defined type