Fixing errors with multiple files