Fixes a bug with updating files when accessing peers