Fixed a lot of access rights issues