Fixed a bug with multiple files.