correct the slug logic