fixing dir perms