Fixes permissiong issue for setXXX functions.