fixed URI issue in permissions