Fix/scoped slug regeneration

Fix for #512