Separated fix of permissions from updating sources.