fixed up permissions fields