fix bug in slug generator