fix slugify function bug