Fixing bug causing language-keyed pages to disappear, small refactoring.