Fix slug generation bug