Fix some issues with creating and renaming pages