Fix redirect after editing permissions