clean up page permissions - fixes #8368