Fixed problems with saving page permissions.