fix bug with updating permissions