fix some permissions