fixing readSlug()