Fixes some issues with the pages editor.