fixes some permissions