Fix permissions and url