You should make sure files is defined, and defined it otherwise.