Fixed bugs in the automatic creation of unique slugs for new pages