Fixed issue where files method on object is occasionally overwritten.