Fixes issues when creating page menu items