Updating permissions twice in the process