Fix permission fields