Fixed role protection of pages and some other minor stuff.