permission fix when moving files